Skip to content

Glasgow | 26-SDC-July | Mansoor Munawar| Sprint 3 | Implement shell tools - #630

Open
MansoorM11 wants to merge 2 commits into
CodeYourFuture:mainfrom
MansoorM11:implement-shell-tools-Mansoor
Open

Glasgow | 26-SDC-July | Mansoor Munawar| Sprint 3 | Implement shell tools#630
MansoorM11 wants to merge 2 commits into
CodeYourFuture:mainfrom
MansoorM11:implement-shell-tools-Mansoor

Conversation

@MansoorM11

@MansoorM11 MansoorM11 commented Jul 29, 2026

Copy link
Copy Markdown

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Implemented shell tools such as cat, ls and grep.

Task ID: CYF-1150

@github-actions

This comment has been minimized.

@MansoorM11 MansoorM11 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 29, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 29, 2026
@github-actions

This comment has been minimized.

@MansoorM11 MansoorM11 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 29, 2026
@MansoorM11 MansoorM11 changed the title Glasgow | 26-SDC-March | Mansoor Munawar| Sprint 3 | Implement shell tools Glasgow | 26-SDC-July | Mansoor Munawar| Sprint 3 | Implement shell tools Jul 29, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Aug 4, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good start but there is quite a bit of work still to do.

You've built your own argument handling system. Is your way of handling options/arguments always going to be the best? Is there a better way of doing this?

Comment thread implement-shell-tools/ls/ls.mjs Outdated
}

if (flags.includes("-1")) {
for (const file of files) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a more advanced javascript way of printing each item in an array, so you don't have to write a full for loop?

Comment thread implement-shell-tools/wc/wc.mjs Outdated
} else if (flag === "-c") {
console.log(getByteCount(content), filePaths);
} else {
console.log(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I tested, i got output that looks very different to the original wc app. Can you find a way to make it look more similar?

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Aug 4, 2026
@MansoorM11 MansoorM11 added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Aug 31, 2026
@github-actions

Copy link
Copy Markdown

The files changed in this PR don't match what is expected for this task.

Please check that you committed the right files for the task, and that there are no accidentally committed files from other sprints.

Please review the 'files changed' tab at the top of the page.

Here is an example of a file that has been changed on this branch but shouldn't be: .DS_Store

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 31, 2026
@MansoorM11 MansoorM11 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 2, 2026
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

The files changed in this PR don't match what is expected for this task.

Please check that you committed the right files for the task, and that there are no accidentally committed files from other sprints.

Please review the 'files changed' tab at the top of the page.

Here is an example of a file that has been changed on this branch but shouldn't be: .DS_Store

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants